﻿using MVCTest0001.Data;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace MVCTest0001.Models
{
    public class MusicStoreDbInitializer : System.Data.Entity.DropCreateDatabaseAlways<MusicStoreDB> 
    {
        protected override void Seed(MusicStoreDB context)
        {
            context.Artists.Add(new Artist { Name = "李逍遥" });
            context.Genres.Add(new Genre { Name = "古典" ,Description = "传世之歌"});

            base.Seed(context);

        }
    }
}